<script type="text/javascript" src="/Inc/AspBox/jsLib/prototype.js"></script>
<script type="text/javascript">
function testHash()
{
	//let's create the object
	var a = {
		first: 10,
		second: 20,
		third: 30
		};

	//now transform it into a hash
	var h = $H(a);
	alert(h.toQueryString()); //displays: first=10&second=20&third=30
}

function demoDollar_R(){
		//以$R的快捷方式初始化此对象
		//$R()方法是new ObjectRange(lowerBound, upperBound, excludeBounds)的一个简单快捷的使用方式
		var range = $R(10, 20, false);
		//遍历对象范围内所有的元素
		range.each(function(value, index){
				alert(value);   //10,11,12,...20
		});
		//判断对象的范围
		alert(range.include(19));       //true
		alert(range.include(21));       //false
}

function test(){
	var str = "Hello World!";
	//var result = str.charAt( 1 ); //@return: e
	//ar result = str.concat("456"); //@return: Hello World!456
	//var result = str.indexOf("o"); //@return: 4
	var result = (str.toArray()).join('|'); //@return: H|e|l|l|o| |W|o|r|l|d|!


	$('show').innerHTML = result;
}
</script>
<input type="button" value="Test" onclick="test();" >
<div id="show"></div>
